package com.yutao.domain;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Player {
    private String uuid,username,photo;
    private final int hp = 100;

    public String toString() {
        JSONObject json = new JSONObject();
        json.put("uuid", uuid);
        json.put("username", username);
        json.put("photo", photo);
        json.put("hp", hp);
        return json.toJSONString();
    }
}
